﻿@model NavKet.Models.Shop
@using NavKet.Models
@{
    ViewBag.Title = "Index";
    Layout = "~/Views/Admin/AdminMasterPage.cshtml";
}
<form method="post"  enctype="multipart/form-data" action="/ShopAdmin/Index/@Model.id" >
<table border="0" cellpadding="0" cellspacing="0" id="id-form">
    <tr>
        <th valign="top">
            Store  name:
        </th>
        <td>
            <input type="text" name="txtShopName" class="inp-form" value="@Model.name" />
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <th valign="top">
            main image
        </th>
        <td>
            <img width="50px" height="50px" src="/Content/pics/@Model.mainImage" />
        </td>
        <td>
        </td>
    </tr>
    <tr>
        <th>
            Image 1:
        </th>
        <td>
            <input type="file" name="MainImageUploader" />
        </td>
        <td>
            <div class="bubble-left">
            </div>
            <div class="bubble-inner">
                JPEG, GIF 5MB max per image</div>
            <div class="bubble-right">
            </div>
        </td>
    </tr>
</table>
<!--  startshop Phones-table ..................................................................................... -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    <tr>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Type </a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Number </a>
        </th>
        <th class="table-header-options line-left">
            <a href="">Options</a>
        </th>
    </tr>
    @foreach (ShopPhone item in ViewBag.shopPhones)
    {
        <tr>
            <td>
                @switch (@item.type)
                {
                    case "A":
                    <h1>
                        phone
                    </h1>
                        break;
                    case "B":
                    <h1>
                        mobile
                    </h1>
                        break;
                    case "C":
                    <h1>
                        Fax
                    </h1>
                        break;
                    default:
                        break;
                }
            </td>
            <td>
                <h1>
                    @item.Number</h1>
            </td>
          
            <td class="options-width">
                <a href="/ShopAdmin/AddShopPhone?shopId=@Model.id" title="Add" class="icon-1 info-tooltip">
                <a href="/ShopAdmin/EditShopPhone/@item.id?shopId=@Model.id" title="Edit" class="icon-1 info-tooltip">
                    <a href="/ShopAdmin/DeletShopPhone/@item.id?shopId=@Model.id" title="Delete" class="icon-2 info-tooltip">
                    </a>
            </td>
        </tr>
    }
</table>
<!--  end shopPhones-table................................... -->
<!--  startshop service-table ..................................................................................... -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    <tr>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Service name</a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Service Descreption </a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Require Data </a>
        </th>
        <th class="table-header-options line-left">
            <a href="">Options</a>
        </th>
    </tr>
    @foreach (ShopService item in ViewBag.ShopServices)
    {
        <tr>
            <td>
                <h1>
                    @item.name
                </h1>
            </td>
            <td>
                <h1>
                    @item.description</h1>
            </td>
            @if (@item.requiredData == "A")
            {
                <td>
                    <h1>
                        Require Data</h1>
                </td>
            }
            else
            {
                <td>
                    <h1>
                        Not require</h1>
                </td>  
            }
            <td class="options-width">
                <a href="/ShopAdmin/AddShopService?shopId=@Model.id" title="Add" class="icon-1 info-tooltip">
                <a href="/ShopAdmin/EditShopService/@item.id?shopId=@Model.id" title="Edit" class="icon-1 info-tooltip">
                    <a href="/ShopAdmin/DeleteShopService/@item.id?shopId=@Model.id" title="Delete" class="icon-2 info-tooltip">
                    </a>
            </td>
        </tr>
    }
</table>
<!--  end shopService-table................................... -->
<!--  startshop News-table ..................................................................................... -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    <tr>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Title</a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Content</a>
        </th>
        <th class="table-header-options line-left">
            <a href="">Options</a>
        </th>
    </tr>
    @foreach (ShopNew item in ViewBag.shopnews)
    {
        <tr>
            <td>
                <h1>
                    @item.title
                </h1>
            </td>
            <td>
                <h1>
                    @item.newsContent</h1>
            </td>
            <td class="options-width">
                <a href="/ShopAdmin/AddShopNews?shopId=@Model.id" title="Add" class="icon-1 info-tooltip">
                <a href="/ShopAdmin/EditShopNews/@item.id?shopId=@Model.id" title="Edit" class="icon-1 info-tooltip">
                    <a href="/ShopAdmin/DeleteShopNews/@item.id?shopId=@Model.id" title="Delete" class="icon-2 info-tooltip">
                    </a>
            </td>
        </tr>
    }
</table>
<!--  end shopNews-table................................... -->
<input type="submit" class="form-submit" value="">
<!--  start image-table ..................................................................................... -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    <tr>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Image Name</a>
        </th>
        <th class="table-header-options line-left">
            <a href="">Options</a>
        </th>
    </tr>
    @foreach (ShopImage item in ViewBag.shopImages)
    {
        <tr>
            <td>
                <img width="50px" height="50px" src="/Content/pics/@item.ImgName" />
            </td>
            <td class="options-width">
                <a href="/ShopAdmin/DeleteShopImage/@item.ImgName?shopId=@Model.id" title="Delete" class="icon-2 info-tooltip">
                </a>
            </td>
        </tr>
    }
    <tr>
       
        <td>
            <input type="file" name="uploader" />
        </td>
        <td>
            <div class="bubble-left">
            </div>
            <div class="bubble-inner">
                JPEG, GIF 5MB max per image</div>
            <div class="bubble-right">
            </div>
        </td>
    </tr>
</table>
<!--  end shopImages-table................................... -->
<!--  start Shop department-table ..................................................................................... -->
<table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
    <tr>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Department Name</a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Department descreption</a>
        </th>
        <th class="table-header-repeat line-left minwidth-1">
            <a href="">Categoru Name</a>
        </th>
        <th class="table-header-options line-left">
            <a href="">Options</a>
        </th>
    </tr>
    @foreach (VW_DepartmentDetails item in ViewBag.shopDepartments)
    {
        <tr>
            <td>
                <h1>
                    @item.DepartmentName</h1>
            </td>
            <td>
                <h1>
                    @item.DepartmentDescription</h1>
            </td>
            <td>
                <h1>
                    @item.CategoryName</h1>
            </td>
            <td class="options-width">
                <a href="/ShopAdmin/AddDepartment?shopId=@Model.id&mallId=@Model.Floor.mallId" title="Add" class="icon-1 info-tooltip">
                <a href="/ShopAdmin/EditDepartment/@item.DepartmentId?shopId=@Model.id&mallId=@Model.Floor.mallId" title="Edit" class="icon-1 info-tooltip">
                </a><a href="/ShopAdmin/DeleteDepartment/@item.DepartmentId?shopId=@Model.id" title="Delete" class="icon-2 info-tooltip">
                </a>
            </td>
        </tr>
    }
</table>
<!--  end shopDepartments-table................................... -->
</form>
